package com.onefinger.services;

import java.util.List;

import org.springframework.flex.remoting.RemotingDestination;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.onefinger.domain.CustomerTable;

@Service
@RemotingDestination(channels = { "my-amf" })
@Transactional
public interface ICustomerTableService {

	
	public List<CustomerTable> list();
	
	@Transactional
	public boolean save( CustomerTable customerTable );
	
	@Transactional
	public boolean remove( CustomerTable customerTable );

	@Transactional
	public CustomerTable assignDevice(Long customerTableId, Long deviceId);

	@Transactional
	public CustomerTable changeStatus(Long customerTableId, String status);
	
	@Transactional
	public CustomerTable getCustomerTableByDevice( String mac ); 

}
